package cn.gd.mapper.Announcements;

import cn.gd.logging.RecordLog;
import cn.gd.pojo.Announcements;
import cn.gd.pojo.Users;

import java.util.List;

/**
 * @author wyh
 * @version 1.80
 */
public interface AnnouncementMapper {
    @RecordLog(desc = "查询所有公告")
    public List<Announcements> getAnnouncementsAll();

    @RecordLog(desc = "查询所有用户")
    public List<Users> getUserAll();

    @RecordLog(desc = "新增公告")
    public int addAnnouncements(Announcements announcements);

    @RecordLog(desc = "根据id查询公告")
    public Announcements getAnnouncementsId(Integer id);

    @RecordLog(desc = "修改公告")
    public int updateAnnouncements(Announcements announcements);

    @RecordLog(desc = "删除公告")
    public int deleteAnnouncements(Integer id);
}
